<textarea id="{$editor_config.translate}" datatype="*" nullmsg="内容不可以为空" name="{$editor_config.name}">{$editor_config.value}</textarea>
<script type="text/javascript" charset="utf-8" src="{$static}/editor/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="{$static}/editor/ueditor/ueditor.all.js"></script>
<script type="text/javascript" charset="utf-8" src="{$static}/editor/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
	$('textarea[name="{$editor_config.name}"]').attr('id', 'editor_id_{$editor_config.name}');
	window.UEDITOR_HOME_URL = "__STATIC__/ueditor";
	window.UEDITOR_CONFIG.initialFrameHeight = parseInt('{$editor_config.editor_height}');
	window.UEDITOR_CONFIG.scaleEnabled = <?php if($editor_config['editor_resize_type'] == 1){echo true;}else{echo false;}?>;
	window.UEDITOR_CONFIG.imageUrl = '{:config("url_domain")}/api.php/UploadImage/editor';
	window.UEDITOR_CONFIG.imagePath = '';
	window.UEDITOR_CONFIG.imageFieldName = 'Filedata';
	UE.getEditor('editor_id_{$editor_config.name}');
</script>